<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String cureInfoJson= (String)request.getAttribute("cureInfoJson");
%>
<link rel="stylesheet" href="${basePath}/assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}/assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}/assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}/assets/css/medical_record/home_page.css"/>

<link rel="stylesheet" href="${basePath}/assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}/assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}/assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}/assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}/assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}/assets/js/medical_record/edit_cure_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}/medical_record/edit_home_page_cure" method="post">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="currentUser" value="${currentUser }">
	<table width="100%" cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td colspan="6"><input type="submit" value="保存" class="btn">
				</td>
			</tr>
			<tr>
				<td align="left" class="tdLabel_7">ABO血型</td>
				<td align="left" class="tdLabel_8">
					<select name="bloodTypeCode" class="bloodTypeCodeSelect"></select>
					<input type="hidden" name="bloodTypeName" value="" />
				</td>
				<td align="left" class="tdLabel_7">RH血型</td>
				<td align="left" colspan="3" class="tdLabel_8">
					<select name="rhBloodTypeCode" class="rhBloodTypeCodeSelect"></select>
					<input type="hidden" name="rhBloodTypeName" value="" />
				</td>
			</tr>
			<tr>
				<td align="left" class="tdLabel_7">抢救次数</td>
				<td align="left" class="tdLabel_8"><input type="text"
					name="rescueNumber"
					value="${cureInfo.rescueNumber }">
				</td>
				<td align="left" class="tdLabel_7">抢救成功次数</td>
				<td align="left" class="tdLabel_8"><input type="text"
					name="rescueSucceedNumber"
					value="${cureInfo.rescueSucceedNumber }">
				</td>
			</tr>
			<%-- <tr>
				<td align="left" class="tdLabel_7">院内会诊数</td>
				<td align="left" class="tdLabel_8"><input type="text"
					name="inConsultationNumber"
					value="${cureInfo.inConsultationNumber }">
				</td>

				<td align="left" class="tdLabel_7">外院会诊数</td>
				<td align="left" colspan="3" class="tdLabel_8"><input
					type="text" name="outConsultationNumber"
					value="${cureInfo.outConsultationNumber }">
				</td>
			</tr> --%>
							
			<tr>
				<%-- <td align="left" class="tdLabel_7">输液次数</td>
				<td align="left" class="tdLabel_8">
					<input type="text" name="infusionTimes" value="${cureInfo.infusionTimes }" />

				</td> --%>
				<td align="left" class="tdLabel_7">输液反应次数</td>
				<td align="left" class="tdLabel_8">
					<input type="text" name="infusionReactTimes" value="${cureInfo.infusionReactTimes }" />
				</td>
				<td align="left" class="tdLabel_7">随诊</td>
					<td align="left" class="tdLabel_8">
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" value="0"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
						期限: 
					<input type="text" style="width: 60px;" name="followUpClinicDayNumber"
						value="${cureInfo.followUpClinicDayNumber }">
						天
					</td>
				
				</tr>
							
				<tr>
					<td class="tdLabel_7">门诊和出院诊断</td>
					<td class="tdLabel_8">
						<input type="hidden" name="diagAccordRecords[0].diagCompareCode" value="A01"/>
						<input type="hidden" name="diagAccordRecords[0].diagCompareName" value="门诊诊断与出院诊断"/>
						<select name="diagAccordRecords[0].diagAccordCode" class="diagAccordCodeSelect">
						</select>
						<input type="hidden" name="diagAccordRecords[0].diagAccordName" value="">
					</td>

					<td class="tdLabel_7">入院和出院诊断</td>
					<td class="tdLabel_8">
						<input type="hidden" name="diagAccordRecords[1].diagCompareCode" value="A02"/>
						<input type="hidden" name="diagAccordRecords[1].diagCompareName" value="入院诊断与出院诊断"/>
						<select name="diagAccordRecords[1].diagAccordCode" class="diagAccordCodeSelect">
						</select>
						<input type="hidden" name="diagAccordRecords[1].diagAccordName" value="">
					</td>
					<td class="tdLabel_7">术前与术后诊断</td>
					<td class="tdLabel_8">
						<input type="hidden" name="diagAccordRecords[2].diagCompareCode" value="A02"/>
						<input type="hidden" name="diagAccordRecords[2].diagCompareName" value="术前诊断与术后诊断"/>
						<select name="diagAccordRecords[2].diagAccordCode" class="diagAccordCodeSelect">
						</select>
						<input type="hidden" name="diagAccordRecords[2].diagAccordName" value="">
					</td>
				</tr>
				<tr>
					<td class="tdLabel_7">临床与病理诊断</td>
					<td class="tdLabel_8">
						<input type="hidden" name="diagAccordRecords[3].diagCompareCode" value="A03"/>
						<input type="hidden" name="diagAccordRecords[3].diagCompareName" value="临床诊断与病理诊断"/>
						<select name="diagAccordRecords[3].diagAccordCode" class="diagAccordCodeSelect">
						</select>
						<input type="hidden" name="diagAccordRecords[3].diagAccordName" value="">
					</td>

					<td class="tdLabel_7">放射和病理诊断</td>
					<td class="tdLabel_8">
						<input type="hidden" name="diagAccordRecords[4].diagCompareCode" value="A04"/>
						<input type="hidden" name="diagAccordRecords[4].diagCompareName" value="放射诊断与病理诊断"/>
						<select name="diagAccordRecords[4].diagAccordCode" class="diagAccordCodeSelect">
						</select>
						<input type="hidden" name="diagAccordRecords[4].diagAccordName" value="">
					</td>
				</tr>
				<tr>
					<td class="tdLabel_7">HBsAg</td>
					<td class="tdLabel_8">
						<select name="hbsAgeResultCode" class="hivCheckResultSelect">
						</select>
						<input type="hidden" name="hbsAgeResultName" value="">
					</td>

					<td class="tdLabel_7">HCV-Ab</td>
					<td class="tdLabel_8">
						<select name="hcvAbResultCode" class="hivCheckResultSelect">
						</select>
						<input type="hidden" name="hcvAbResultName" value="">
					</td>
					<td class="tdLabel_7">HIV-Ab</td>
					<td class="tdLabel_8">
						<select name="hivAbResultCode" class="hivCheckResultSelect">
						</select>
						<input type="hidden" name="hivAbResultName" value="">
					</td>
				</tr>
				<tr>
				<td class="tdLabel_7">科主任</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[0].professionTitleCode" value="Y00"/>
						<input type="hidden" name="cureWorkers[0].professionTitleName" value="科主任"/>
						<input type="text" name="cureWorkers[0].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[0].medicalWorkerCode" value="">
					</td>
					<td class="tdLabel_7">主(副主)任医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[1].professionTitleCode" value="Y01"/>
						<input type="hidden" name="cureWorkers[1].professionTitleName" value="主(副主)任医师"/>
						<input type="text" name="cureWorkers[1].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[1].medicalWorkerCode" value="">
					</td>
						
	<!-- 				<td class="tdLabel_7">副主任医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[2].professionTitleCode" value="Y02"/>
						<input type="hidden" name="cureWorkers[2].professionTitleName" value="副主任医师"/>
						<input type="text" name="cureWorkers[2].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[2].medicalWorkerCode" value="">
					</td> -->
					<td class="tdLabel_7">主治医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[3].professionTitleCode" value="Y03"/>
						<input type="hidden" name="cureWorkers[3].professionTitleName" value="主治医师"/>
						<input type="text" name="cureWorkers[3].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[3].medicalWorkerCode" value="">
					</td>
				</tr>

				<tr>
					<!-- <td class="tdLabel_7">主治医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[3].professionTitleCode" value="Y03"/>
						<input type="hidden" name="cureWorkers[3].professionTitleName" value="主治医师"/>
						<input type="text" name="cureWorkers[3].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[3].medicalWorkerCode" value="">
					</td> -->
					<td class="tdLabel_7">住院医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[10].professionTitleCode" value="Y10"/>
						<input type="hidden" name="cureWorkers[10].professionTitleName" value="住院医师"/>
						<input type="text" name="cureWorkers[10].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[10].medicalWorkerCode" value="">
					</td>
					<td class="tdLabel_7">进修医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[4].professionTitleCode" value="Y04"/>
						<input type="hidden" name="cureWorkers[4].professionTitleName" value="进修医师"/>
						<input type="text" name="cureWorkers[4].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[4].medicalWorkerCode" value="">
					</td>
					<td class="tdLabel_7">研究生实习医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[5].professionTitleCode" value="Y05"/>
						<input type="hidden" name="cureWorkers[5].professionTitleName" value="研究生实习医师"/>
						<input type="text" name="cureWorkers[5].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[5].medicalWorkerCode" value="">
					</td>
				</tr>
				<tr>
					<!-- <td class="tdLabel_7">研究生实习医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[5].professionTitleCode" value="Y05"/>
						<input type="hidden" name="cureWorkers[5].professionTitleName" value="研究生实习医师"/>
						<input type="text" name="cureWorkers[5].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[5].medicalWorkerCode" value="">
					</td> -->
					<td class="tdLabel_7">实习医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[6].professionTitleCode" value="Y06"/>
						<input type="hidden" name="cureWorkers[6].professionTitleName" value="实习医师"/>
						<input type="text" name="cureWorkers[6].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[6].medicalWorkerCode" value="">
					</td>

					<td class="tdLabel_7">编码员</td>
					<td class="tdLabel_8" style="border：1px solid red">
						<input type="hidden" name="cureWorkers[7].professionTitleCode" value="Y07"/>
						<input type="hidden" name="cureWorkers[7].professionTitleName" value="编码员"/>
						<input type="text" id="codeMan" name="cureWorkers[7].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[7].medicalWorkerCode" value="">
					</td>
					<td class="tdLabel_7">质控医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[8].professionTitleCode" value="Y08"/>
						<input type="hidden" name="cureWorkers[8].professionTitleName" value="质控医师"/>
						<input type="text" name="cureWorkers[8].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[8].medicalWorkerCode" value="">
					</td>
				</tr>
				<tr>
					<!-- <td class="tdLabel_7">质控医师</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[8].professionTitleCode" value="Y08"/>
						<input type="hidden" name="cureWorkers[8].professionTitleName" value="质控医师"/>
						<input type="text" name="cureWorkers[8].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[8].medicalWorkerCode" value="">
					</td> -->
					<td class="tdLabel_7">质控护士</td>
					<td class="tdLabel_8">
						<input type="hidden" name="cureWorkers[9].professionTitleCode" value="Y09"/>
						<input type="hidden" name="cureWorkers[9].professionTitleName" value="质控护士"/>
						<input type="text" name="cureWorkers[9].medicalWorkerName" class="cureMedicalWorkerSearchInput"/>
						<input type="hidden" name="cureWorkers[9].medicalWorkerCode" value="">
					</td>
					<td class="tdLabel_7">病案质量</td>
					<td class="tdLabel_8">
						
						<input type="text" name="medicalRecordQualityName" value="${cureInfo.medicalRecordQualityName }"/>
					</td>
					<td class="tdLabel_7">质控时间</td>
					<td class="tdLabel_8">
						
						<input type="text" name="qualityControlDateTime" value="${cureInfo.qualityControlDateTime }" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
						
					</td>
				</tr>
			<%-- 	
				<tr>
					<td class="tdLabel_7">病案质量</td>
					<td class="tdLabel_8">
						
						<input type="text" name="medicalRecordQualityName" value="${cureInfo.medicalRecordQualityName }"/>
					</td>
					<td class="tdLabel_7">质控时间</td>
					<td class="tdLabel_8">
						
						<input type="text" name="qualityControlDateTime" value="${cureInfo.qualityControlDateTime }" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
						
					</td>
				</tr> --%>
		</tbody>
	</table>
</form>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		var cureInfoJson= <%=cureInfoJson%>;
		initPage(baseInfoJson,cureInfoJson);
		
		//校验数据正确性
		validateDate();
		init();
	});
	
	function init(){
		if($("#codeMan").val()==null || $("#codeMan").val()==undefined || $("#codeMan").val()==""){
			var user =$("#currentUser").val();
			$("#codeMan").val(user);
		}
	}
</script>